$(function () {
    var searchURL = window.location.search;  
searchURL = searchURL.substring(1, searchURL.length);  
    
    $.get('api/article/getarticlelistbymid',{menuid:"000000"}, function (data) {
        console.log(data)
        for (var i = 0; i < 10; i++) {
        $("#abc ul").append("<li id='" + data[i]["Id"] + "'><span class='time'>" + data[i]["Time"].substring(5,10) + "</span><a id='" + data[i]["Id"] + "' href=# onclick=DealFun4(this.id);>" + data[i]["Title"] + "</a></li>");
        console.log(data.Title)}
    }
    
),
$.get('/api/article/getarticlelistbymid',{menuid:"111111"}, function (data) {
        console.log(data)
        for (var i = 0; i < 8; i++) {
        $("#main ul").append("<li id='" + data[i]["Id"] + "'><span class='time'>" + data[i]["Time"].substring(0,10) + "</span><a id='" + data[i]["Id"] + "' href=# onclick=DealFun4(this.id);>" + data[i]["Title"] + "</a></li>");
        console.log(data.Title)}
    })})
function DealFun4(Id) 
 {
     var templateurl='services2.html'
 //    var trName=document.getElementById(data[i]["ParentId"]).innerText;
     var trId = templateurl + '?articleid=' + Id ;         
     open(trId)       
}
function DealFun5(Id,indexname) 
 {
    
     var templateurl='gongxin.html'
    
     // var indexnameURI=encodeURIComponent(indexname)
     var trId = templateurl  +'?menuid='+ Id + '&indexname=' + indexname;         
     open(trId)  
  
}